<template>
	<view class="contact">
		<view class="" @click="call">联系电话：18786896572</view>
		<view class="">联系地址：陕西省西安市雁塔区</view>
		<map style="width: 100%; height: 300px;" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				 id:0, // 使用 marker点击事件 需要填写id
				title: 'map',
				latitude: 39.909,
				longitude: 116.39742,
				covers: [{
					latitude: 39.909,
					longitude: 116.39742,
					iconPath: '/static/logo.png'
				}]
			}
		},
		methods:{
			call:function(){
				uni.makePhoneCall({
				    phoneNumber: '18786896572' 
				})
			}
		}
	}
</script>

<style lang="scss">
	.contact{
		width: 100%;
		map{
			width: 100%;
			height: 750rpx;
		}
	}
</style>
